package com.qf.product.controller;

import com.qf.product.service.AreaService;
import com.qf.product.vo.AreaVo;
import com.qf.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 行政区划表(QfArea)表控制层
 *
 * @author makejava
 * @since 2023-10-29 13:44:21
 */
@RestController
@RequestMapping("/area")
@CrossOrigin
public class AreaController {

    @Autowired
    private AreaService areaService;

    /*查询所有省市区*/
    @GetMapping("/findAll")
    public Result<List<AreaVo>> findAll(){
        return areaService.findAll();
    }
}

